<form class="ui form" id="form_responsive_{{.listtable.Code}}">
<div class="  field " style="display:none">
        <label>Id</label>
        <input type="text" name="Id" value="{{.listtable.Id}}">
    </div>
    <div class="  field ">
        <label>编码</label>
        <input type="text" name="Code" value="{{.listtable.Code}}">
    {{if $.errmap}}
     {{$errCode := index $.errmap "errCode"}}
     {{if $errCode}}
        <div class="ui pointing red basic label">{{$errCode}} </div>
        {{end}}
      {{end}}

    </div>
    <div class=" field ">
        <label>名字</label>
        <input type="text" name="Name" value="{{.listtable.Name}}">
         {{if $.errmap}}
     {{$errName := index $.errmap "errName"}}
     {{if $errName}}
        <div class="ui pointing red basic label">{{$errName}} </div>
        {{end}}
      {{end}}
    </div>
    <div class="  field ">
        <label>列头</label>
        <input type="text" name="Head" value="{{.listtable.Head}}">
           {{if $.errmap}}
     {{$errHead := index $.errmap "errHead"}}
     {{if $errHead}}
        <div class="ui pointing red basic label">{{$errHead}} </div>
        {{end}}
      {{end}}
    </div>
    <div class=" field ">
        <label>列头对应SQL字段</label>
        <input type="text" name="Col" value="{{.listtable.Col}}">
            {{if $.errmap}}
     {{$errCol := index $.errmap "errCol"}}
     {{if $errCol}}
        <div class="ui pointing red basic label">{{$errCol}} </div>
        {{end}}
      {{end}}
    </div>
    <div class=" field ">
        <label>每页显示数量</label>
        <input type="text" name="Mount" value="{{.listtable.Mount}}">
          {{if $.errmap}}
     {{$errMount := index $.errmap "errMount"}}
     {{if $errMount}}
        <div class="ui pointing red basic label">{{$errMount}} </div>
        {{end}}
      {{end}}
    </div>
    <div class=" field">
        <label>SQL语句</label>
        <textarea name="Sql" rows="2">{{.listtable.Sql}}</textarea>
          {{if $.errmap}}
     {{$errSql := index $.errmap "errSql"}}
     {{if $errSql}}
        <div class="ui pointing red basic label">{{$errSql}} </div>
        {{end}}
      {{end}}
    </div>
    <div class=" field">
        <label>按钮(json 格式)</label>
        <textarea name="Button" rows="2">{{.listtable.Button}}</textarea>
            {{if $.errmap}}
     {{$errButton := index $.errmap "errButton"}}
     {{if $errButton}}
        <div class="ui pointing red basic label">{{$errButton}} </div>
        {{end}}
      {{end}}
    </div>
    <div class=" field">
        <label>备注</label>
        <textarea name="Description" rows="2">{{.listtable.Description}}</textarea>
    </div>

</form>
<div class="row"><p>&nbsp</p></div>
    <div class="ui buttons">
        <button class="ui button active" onclick="cancle()">Cancel</button>
        <div class="or"></div>
        <button class="ui positive button" onclick="saveform('/menu/lists/savelist','form_responsive_{{.listtable.Code}}')">Save</button>
    </div>